package com.test.jwt;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author ssang
 * @date 2021-12-22 16:21
 */
public class JWTToken extends UsernamePasswordToken {
    private static final long serialVersionUID = 1L;
    // 秘钥
    private String token;

    public JWTToken(String token) {
        this.token = token;
    }
    @Override
    public Object getPrincipal() {
        return token;
    }


    @Override
    public Object getCredentials() {
        return token;
    }
}
